package com.wf.course.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wf.course.model.member.MemberGoldLog;

/**
 * 播放记录
 *
 */
public interface IMemberGoldLogMapper {

	/**
	 * 根据订单编号，更新所有该订单下的type状态
	 * @param orderCode
	 * @param type
	 */
	public void updatemgoleByOrderCode(@Param("orderCode") String orderCode,@Param("type") Integer type);
	/**
	 * 根据订单编号，查询金币使用情况
	 * @param orderCode
	 */
	public MemberGoldLog getMemberorderCode(@Param("orderCode")String orderCode);
	/**
	 * 添加新数据
	 */
	public void savememberGold(MemberGoldLog membergoldlog);
	
	public List<MemberGoldLog> getUserid(@Param("userId") Integer userId);

	MemberGoldLog getMemberNewGoldByOrderCode(@Param("orderCode")String orderCode);

	Integer saveMemberNewGold(MemberGoldLog membergoldlog);

	public List<MemberGoldLog> getNewGoldLogByUserId(@Param("userId") Integer userId);

}
